testCase39='DBshop039_删除客户组流程'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'客户管理','管理客户组')
firefox.find_element_by_xpath('//td[contains(.,"博为峰")]//following-sibling::td[3]/a[2]').click()#删除博为峰
firefox.switch_to.alert.accept()#处理弹窗
time.sleep(4)
try:
    firefox.find_element_by_xpath('//td[text()="博为峰"]').is_displayed()#通过客户组名称断言
    writeLog('%s 测试不通过' % testCase39)
    getPhoto(firefox)
except:
    writeLog('%s 测试通过' % testCase39)
firefox.quit()



